FROM ubuntu:18.04

RUN apt-get update && apt-get install -y \
  git \
  python3.7 \
  python3-pip \
  python3.6-dev

RUN pip3 install --upgrade pip

COPY ./requirements.txt /requirements.txt
RUN pip install -r /requirements.txt

ARG UID
RUN useradd docker -l -u $UID -s /bin/bash -m
USER docker

ENV PATH=$PATH:/home/docker/.local/bin
